/**
 * 说明：
 * 创建人：pluto
 * 创建时间：2018/8/3
 */
var CallListCtrl = function ($scope, CallListService) {
    $scope.param = {pageNum: 1, pageSize: 10};
    $scope.result = {};
    var _loadData = function (param) {
        CallListService.listForPage(param).then(function (res) {
            console.log(res);
            $scope.result = res;
        })
    };
    _loadData($scope.param);
    $scope.onPageChange = function () {
        $scope.param.pageNum = $scope.result.page.currentNo;
        _loadData($scope.param);
    };
};

angular.module('app.system.call.controller',[])
    .controller("CallListCtrl",CallListCtrl)
